EntityWithPluginBagInterface.php 545 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
27
28
<?php

/**
 * @file
 * Contains \Drupal\Core\Config\Entity\EntityWithPluginBagInterface.
 */

namespace Drupal\Core\Config\Entity;

/**
 * Provides an interface for an object utilizing a plugin bag.
 *
 * @see \Drupal\Component\Plugin\PluginBag
 *
 * @todo Turn this into a trait.
 */
interface EntityWithPluginBagInterface extends ConfigEntityInterface {

  /**
   * Returns the plugin bag used by this entity.
   *
   * @return \Drupal\Component\Plugin\PluginBag
   *
   * @todo Make this protected.
   */
  public function getPluginBag();

}