You are here

public function Script::getPluginCollections in Script Manager 8

Gets the plugin collections used by this object.

Return value

\Drupal\Component\Plugin\LazyPluginCollection[] An array of plugin collections, keyed by the property name they use to store their configuration.

Overrides ObjectWithPluginCollectionInterface::getPluginCollections

File

src/Entity/Script.php, line 103

Class

Script
A script config entity.

Namespace

Drupal\script_manager\Entity

Code

public function getPluginCollections() {
  return [
    'visibility' => $this
      ->getVisibilityConditions(),
  ];
}