method public

Format::setTemplateCollection()

Класс: \Bitrix\Location\Entity\Format

Сигнатура

public setTemplateCollection(TemplateCollection $templateCollection) : $this

Параметры

$templateCollection TemplateCollection

Возвращаемое значение

$this

Как применяется в Format

Format::setTemplateCollection() — метод класса \Bitrix\Location\Entity\Format модуля «Местоположения».

Метод объекта: сначала нужен экземпляр Format.

use Bitrix\Main\Loader;
use Bitrix\Location\Entity\Format;

Loader::includeModule('location');

/** @var Format $object */
$templateCollection = null; // TemplateCollection
$result = $object->setTemplateCollection($templateCollection);
// $result: $this

Другие методы Format

Исходный файл: source/location/lib/entity/format.php:172

Что будем искать? Например,Продвижение