summaryrefslogtreecommitdiffstatshomepage
path: root/core/modules/system/src/ActionConfigEntityInterface.php
blob: 8865b4eb35d200d03f60f78b35551b88d79fdb11 (plain) (blame)
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
29
30
31
32
33
34
35
36
37
38
<?php

namespace Drupal\system;

use Drupal\Core\Config\Entity\ConfigEntityInterface;

/**
 * Provides an interface defining an action entity.
 */
interface ActionConfigEntityInterface extends ConfigEntityInterface {

  /**
   * Returns whether or not this action is configurable.
   *
   * @return bool
   *   TRUE if the action is configurable, FALSE otherwise.
   */
  public function isConfigurable();

  /**
   * Returns the operation type.
   *
   * The operation type can be NULL if no type is specified.
   *
   * @return string|null
   *   The operation type, or NULL if no type is specified.
   */
  public function getType();

  /**
   * Returns the operation plugin.
   *
   * @return \Drupal\Core\Action\ActionInterface
   *   The action plugin instance.
   */
  public function getPlugin();

}