interface RabbitHoleEntityPluginInterface in Rabbit Hole 8
Same name and namespace in other branches
- 2.x src/Plugin/RabbitHoleEntityPluginInterface.php \Drupal\rabbit_hole\Plugin\RabbitHoleEntityPluginInterface
Defines an interface for Rabbit hole entity plugin plugins.
Hierarchy
- interface \Drupal\Component\Plugin\PluginInspectionInterface
- interface \Drupal\rabbit_hole\Plugin\RabbitHoleEntityPluginInterface
Expanded class hierarchy of RabbitHoleEntityPluginInterface
All classes that implement RabbitHoleEntityPluginInterface
File
- src/
Plugin/ RabbitHoleEntityPluginInterface.php, line 11
Namespace
Drupal\rabbit_hole\PluginView source
interface RabbitHoleEntityPluginInterface extends PluginInspectionInterface {
/**
* Return locations to attach submit handlers to entities.
*
* This should return an array of arrays, e.g.:
* [
* ['actions', 'submit', '#publish'],
* ['actions', 'publish', '#submit'],
* ].
*/
public function getFormSubmitHandlerAttachLocations(array $form, FormStateInterface $form_state);
/**
* Return locations to attach submit handlers to entity bundle form.
*
* This should return an array of arrays, e.g.:
* [
* ['actions', 'submit', '#publish'],
* ['actions', 'publish', '#submit'],
* ].
*
* @return array
* A multidimensional array.
*/
public function getBundleFormSubmitHandlerAttachLocations(array $form, FormStateInterface $form_state);
/**
* Return the form ID of the config form for this plugin's entity.
*
* Return the form ID of the global config form for the entity targeted by
* this plugin.
*
* @return string
* The form ID of the global config form.
*/
public function getGlobalConfigFormId();
/**
* Return locations to attach submit handlers to the global config form.
*
* This should return an array of arrays, e.g.:
* [
* ['actions', 'submit', '#publish'],
* ['actions', 'publish', '#submit'],
* ].
*/
public function getGlobalFormSubmitHandlerAttachLocations(array $form, FormStateInterface $form_state);
/**
* Return a map of entity IDs used by this plugin to token IDs.
*
* @return array
* A map of token IDs to entity IDs in the form
* ['entity ID' => 'token ID']
*/
public function getEntityTokenMap();
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
PluginInspectionInterface:: |
public | function | Gets the definition of the plugin implementation. | 4 |
PluginInspectionInterface:: |
public | function | Gets the plugin_id of the plugin instance. | 2 |
RabbitHoleEntityPluginInterface:: |
public | function | Return locations to attach submit handlers to entity bundle form. | 1 |
RabbitHoleEntityPluginInterface:: |
public | function | Return a map of entity IDs used by this plugin to token IDs. | 1 |
RabbitHoleEntityPluginInterface:: |
public | function | Return locations to attach submit handlers to entities. | 1 |
RabbitHoleEntityPluginInterface:: |
public | function | Return the form ID of the config form for this plugin's entity. | 1 |
RabbitHoleEntityPluginInterface:: |
public | function | Return locations to attach submit handlers to the global config form. | 1 |