You are here

public function Template::getNodeTypes in Wysiwyg API template plugin 8.2

Same name and namespace in other branches
  1. 3.0.x src/Entity/Template.php \Drupal\wysiwyg_template\Entity\Template::getNodeTypes()

Gets the list of allowed node types.

Return value

string[]

Overrides TemplateInterface::getNodeTypes

1 call to Template::getNodeTypes()
Template::save in src/Entity/Template.php
Saves an entity permanently.

File

src/Entity/Template.php, line 121

Class

Template
Defines the Template entity.

Namespace

Drupal\wysiwyg_template\Entity

Code

public function getNodeTypes() : array {
  return $this->node_types ?: [];
}