interface FormEntityContextInterface in Flexiform 8
Interface for form entity contexts.
This extends the standard ContextInterface with two methods used to store the entity namespace in a way that can be accessible.
Hierarchy
- interface \Drupal\Component\Plugin\Context\ContextInterface; interface \Drupal\Core\Cache\CacheableDependencyInterface
- interface \Drupal\Core\Plugin\Context\ContextInterface
- interface \Drupal\flexiform\FormEntity\FormEntityContextInterface
- interface \Drupal\Core\Plugin\Context\ContextInterface
Expanded class hierarchy of FormEntityContextInterface
All classes that implement FormEntityContextInterface
File
- src/
FormEntity/ FormEntityContextInterface.php, line 13
Namespace
Drupal\flexiform\FormEntityView source
interface FormEntityContextInterface extends ContextInterface {
/**
* Set the entity namespace.
*
* @param string $namespace
* The entity namespace.
*/
public function setEntityNamespace($namespace);
/**
* Get the entity namespace.
*
* @return string
* The entity namespace.
*/
public function getEntityNamespace();
/**
* Get the form entity plugin.
*
* @return \Drupal\flexiform\FormEntity\FlexiformFormEntityInterface
*/
public function getFormEntity();
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
CacheableDependencyInterface:: |
public | function | The cache contexts associated with this object. | 34 |
CacheableDependencyInterface:: |
public | function | The maximum age for which this object may be cached. | 34 |
CacheableDependencyInterface:: |
public | function | The cache tags associated with this object. | 27 |
ContextInterface:: |
public | function | Adds a dependency on an object: merges its cacheability metadata. | 1 |
ContextInterface:: |
public static | function | Creates a new context with a different value. | 1 |
ContextInterface:: |
public | function | Gets a list of validation constraints. | 1 |
ContextInterface:: |
public | function | Gets the context value as typed data object. | 1 |
ContextInterface:: |
public | function |
Overrides ContextInterface:: |
|
ContextInterface:: |
public | function | Gets the context value. | 1 |
ContextInterface:: |
public | function | Returns whether the context has a value. | 1 |
ContextInterface:: |
public | function | Validates the set context value. | 1 |
FormEntityContextInterface:: |
public | function | Get the entity namespace. | 1 |
FormEntityContextInterface:: |
public | function | Get the form entity plugin. | 1 |
FormEntityContextInterface:: |
public | function | Set the entity namespace. | 1 |