You are here

public function Template::setBundles in Workbench Email 2.x

Same name and namespace in other branches
  1. 8 src/Entity/Template.php \Drupal\workbench_email\Entity\Template::setBundles()

Sets bundles this template applies to.

Parameters

string[] $bundles: Bundles this template applies to in {entity_type_id}:{bundle} format.

Return value

self Called instance.

Overrides TemplateInterface::setBundles

File

src/Entity/Template.php, line 222

Class

Template
Defines the Email Template entity.

Namespace

Drupal\workbench_email\Entity

Code

public function setBundles(array $bundles) {
  $this->bundles = $bundles;
  return $this;
}