interface LinkItemInterface in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/modules/link/src/LinkItemInterface.php \Drupal\link\LinkItemInterface
Defines an interface for the link field item.
Hierarchy
- interface \Drupal\Core\TypedData\TypedDataInterface
- interface \Drupal\Core\TypedData\TraversableTypedDataInterface extends \Drupal\Core\TypedData\Traversable
- interface \Drupal\Core\TypedData\ComplexDataInterface
- interface \Drupal\Core\Field\FieldItemInterface
- interface \Drupal\link\LinkItemInterface
- interface \Drupal\Core\Field\FieldItemInterface
- interface \Drupal\Core\TypedData\ComplexDataInterface
- interface \Drupal\Core\TypedData\TraversableTypedDataInterface extends \Drupal\Core\TypedData\Traversable
Expanded class hierarchy of LinkItemInterface
All classes that implement LinkItemInterface
11 files declare their use of LinkItemInterface
- EntityContentBase.php in core/
modules/ migrate/ src/ Plugin/ migrate/ destination/ EntityContentBase.php - Contains \Drupal\migrate\Plugin\migrate\destination\EntityContentBase.
- LinkFieldTest.php in core/
modules/ link/ src/ Tests/ LinkFieldTest.php - Contains \Drupal\link\Tests\LinkFieldTest.
- LinkFieldUITest.php in core/
modules/ link/ src/ Tests/ LinkFieldUITest.php - Contains \Drupal\link\Tests\LinkFieldUITest.
- LinkFormatter.php in core/
modules/ link/ src/ Plugin/ Field/ FieldFormatter/ LinkFormatter.php - Contains \Drupal\link\Plugin\Field\FieldFormatter\LinkFormatter.
- LinkItem.php in core/
modules/ link/ src/ Plugin/ Field/ FieldType/ LinkItem.php - Contains \Drupal\link\Plugin\Field\FieldType\LinkItem.
File
- core/
modules/ link/ src/ LinkItemInterface.php, line 15 - Contains \Drupal\link\LinkItemInterface.
Namespace
Drupal\linkView source
interface LinkItemInterface extends FieldItemInterface {
/**
* Specifies whether the field supports only internal URLs.
*/
const LINK_INTERNAL = 0x1;
/**
* Specifies whether the field supports only external URLs.
*/
const LINK_EXTERNAL = 0x10;
/**
* Specifies whether the field supports both internal and external URLs.
*/
const LINK_GENERIC = 0x11;
/**
* Determines if a link is external.
*
* @return bool
* TRUE if the link is external, FALSE otherwise.
*/
public function isExternal();
/**
* Gets the URL object.
*
* @return \Drupal\Core\Url
* Returns an Url object.
*/
public function getUrl();
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
ComplexDataInterface:: |
public | function | Gets a property object. | 3 |
ComplexDataInterface:: |
public | function | Gets an array of property objects. | 3 |
ComplexDataInterface:: |
public | function | Determines whether the data structure is empty. | 3 |
ComplexDataInterface:: |
public | function | Sets a property value. | 3 |
ComplexDataInterface:: |
public | function | Returns an array of all property values. | 3 |
FieldItemInterface:: |
public static | function | Calculates dependencies for field items. | 1 |
FieldItemInterface:: |
public static | function | Calculates dependencies for field items on the storage level. | 1 |
FieldItemInterface:: |
public static | function | Defines the field-level settings for this plugin. | 1 |
FieldItemInterface:: |
public static | function | Defines the storage-level settings for this plugin. | 1 |
FieldItemInterface:: |
public | function | Defines custom delete behavior for field values. | 1 |
FieldItemInterface:: |
public | function | Defines custom revision delete behavior for field values. | 1 |
FieldItemInterface:: |
public | function | Returns a form for the field-level settings. | 1 |
FieldItemInterface:: |
public static | function | Returns a settings array in the field type's canonical representation. | 1 |
FieldItemInterface:: |
public static | function | Returns a settings array that can be stored as a configuration value. | 1 |
FieldItemInterface:: |
public static | function | Generates placeholder field values. | 1 |
FieldItemInterface:: |
public | function | Gets the entity that field belongs to. | 1 |
FieldItemInterface:: |
public | function | Gets the field definition. | 1 |
FieldItemInterface:: |
public | function | Gets the langcode of the field values held in the object. | 1 |
FieldItemInterface:: |
public static | function | Returns the name of the main property, if any. | 1 |
FieldItemInterface:: |
public static | function | Informs the plugin that a dependency of the field will be deleted. | 1 |
FieldItemInterface:: |
public | function | Defines custom post-save behavior for field values. | 1 |
FieldItemInterface:: |
public | function | Defines custom presave behavior for field values. | 1 |
FieldItemInterface:: |
public static | function | Defines field item properties. | 22 |
FieldItemInterface:: |
public static | function | Returns the schema for the field. | 25 |
FieldItemInterface:: |
public | function | Returns a form for the storage-level settings. | 1 |
FieldItemInterface:: |
public static | function | Returns a settings array in the field type's canonical representation. | 1 |
FieldItemInterface:: |
public static | function | Returns a settings array that can be stored as a configuration value. | 1 |
FieldItemInterface:: |
public | function | Returns a renderable array for a single field item. | 1 |
FieldItemInterface:: |
public | function | Magic method: Gets a property value. | 1 |
FieldItemInterface:: |
public | function | Magic method: Determines whether a property is set. | 1 |
FieldItemInterface:: |
public | function | Magic method: Sets a property value. | 1 |
FieldItemInterface:: |
public | function | Magic method: Unsets a property. | 1 |
LinkItemInterface:: |
public | function | Gets the URL object. | 1 |
LinkItemInterface:: |
public | function | Determines if a link is external. | 1 |
LinkItemInterface:: |
constant | Specifies whether the field supports only external URLs. | ||
LinkItemInterface:: |
constant | Specifies whether the field supports both internal and external URLs. | ||
LinkItemInterface:: |
constant | Specifies whether the field supports only internal URLs. | ||
TraversableTypedDataInterface:: |
public | function | React to changes to a child property or item. | 5 |
TypedDataInterface:: |
public | function | Applies the default value. | 2 |
TypedDataInterface:: |
public static | function | Constructs a TypedData object given its definition and context. | 2 |
TypedDataInterface:: |
public | function | Gets a list of validation constraints. | 2 |
TypedDataInterface:: |
public | function | Gets the data definition. | 2 |
TypedDataInterface:: |
public | function | Returns the name of a property or item. | 2 |
TypedDataInterface:: |
public | function | Returns the parent data structure; i.e. either complex data or a list. | 2 |
TypedDataInterface:: |
public | function | Returns the property path of the data. | 2 |
TypedDataInterface:: |
public | function | Returns the root of the typed data tree. | 2 |
TypedDataInterface:: |
public | function | Returns a string representation of the data. | 2 |
TypedDataInterface:: |
public | function | Gets the data value. | 2 |
TypedDataInterface:: |
public | function | Sets the context of a property or item via a context aware parent. | 2 |
TypedDataInterface:: |
public | function | Sets the data value. | 2 |
TypedDataInterface:: |
public | function | Validates the currently set data value. | 2 |