EntityWithPluginBagsInterface.php 563 Bytes
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
<?php

/**
 * @file
 * Contains \Drupal\Core\Entity\EntityWithPluginBagsInterface.
 */

namespace Drupal\Core\Entity;

/**
 * Provides an interface for an object utilizing a plugin bag.
 *
 * @see \Drupal\Component\Plugin\PluginBag
 */
interface EntityWithPluginBagsInterface extends EntityInterface {

  /**
   * Returns the plugin bags used by this entity.
   *
   * @return \Drupal\Component\Plugin\PluginBag[]
   *   An array of plugin bags, keyed by the property name they use to store
   *   their configuration.
   */
  public function getPluginBags();

}