EntityInterface::label

public EntityInterface::label() Gets the label of the entity. Return value string|null The label of the entity, or NULL if there is no label defined. File core/lib/Drupal/Core/Entity/EntityInterface.php, line 96 Class EntityInterface Defines a common interface for all entity objects. Namespace Drupal\Core\Entity Code public function label();

RefinableCacheableDependencyTrait::mergeCacheMaxAge

public RefinableCacheableDependencyTrait::mergeCacheMaxAge($max_age) Merges the maximum age (in seconds) with the existing maximum age. The max age will be set to the given value if it is lower than the existing value. Parameters int $max_age: The max age to associate. Return value $this Throws \InvalidArgumentException Thrown if a non-integer value is supplied. Overrides RefinableCacheableDependencyInterface::mergeCacheMaxAge File core/lib/Drupal/Core/Cache/RefinableCacheableDependencyTrait

PoDatabaseWriter

Gettext PO writer working with the locale module database. Hierarchy class \Drupal\locale\PoDatabaseWriter implements PoWriterInterface File core/modules/locale/src/PoDatabaseWriter.php, line 13 Namespace Drupal\locale Members Name Modifiers Type Description PoDatabaseWriter::$header private property Header of the po file written to the database. PoDatabaseWriter::$langcode private property Language code of the language being written to the database. PoDatabase

EntityViewsDataInterface

Provides an interface to integrate an entity type with views. Hierarchy interface \Drupal\views\EntityViewsDataInterface File core/modules/views/src/EntityViewsDataInterface.php, line 10 Namespace Drupal\views Members Name Modifiers Type Description EntityViewsDataInterface::getViewsData public function Returns views data for the entity type. EntityViewsDataInterface::getViewsTableForEntityType public function Gets the table of an entity type to be used as base t

MenuLinkTree::getExpanded

public MenuLinkTree::getExpanded($menu_name, array $parents) Finds expanded links in a menu given a set of possible parents. Parameters string $menu_name: The menu name. array $parents: One or more parent IDs to match. Return value array The menu link IDs that are flagged as expanded in this menu. Overrides MenuLinkTreeInterface::getExpanded File core/lib/Drupal/Core/Menu/MenuLinkTree.php, line 294 Class MenuLinkTree Implements the loading, transforming and rendering of menu link trees.

Filter::$title

The human-readable name of the filter. This is used as an administrative summary of what the filter does. Type: \Drupal\Core\Annotation\Translation Related topics Annotation for translatable text Describes how to put translatable UI text into annotations. File core/modules/filter/src/Annotation/Filter.php, line 46 Class Filter Defines an filter annotation object. Namespace Drupal\filter\Annotation Code public $title;

DataDefinition::getClass

public DataDefinition::getClass() Returns the class used for creating the typed data object. If not specified, the default class of the data type will be returned. Return value string The class used for creating the typed data object. Overrides DataDefinitionInterface::getClass File core/lib/Drupal/Core/TypedData/DataDefinition.php, line 188 Class DataDefinition A typed data definition class for defining data based on defined data types. Namespace Drupal\Core\TypedData Code public fun

EntityDisplayRepository::$entityTypeManager

The entity type manager. Type: \Drupal\Core\Entity\EntityTypeManagerInterface File core/lib/Drupal/Core/Entity/EntityDisplayRepository.php, line 39 Class EntityDisplayRepository Provides a repository for entity display objects (view modes and form modes). Namespace Drupal\Core\Entity Code protected $entityTypeManager;

ContactForm::getWeight

public ContactForm::getWeight() Returns the weight of this category (used for sorting). Return value int The weight of this category. Overrides ContactFormInterface::getWeight File core/modules/contact/src/Entity/ContactForm.php, line 175 Class ContactForm Defines the contact form entity. Namespace Drupal\contact\Entity Code public function getWeight() { return $this->weight; }

UrlHelper::filterBadProtocol

public static UrlHelper::filterBadProtocol($string) Processes an HTML attribute value and strips dangerous protocols from URLs. Parameters string $string: The string with the attribute value. Return value string Cleaned up and HTML-escaped version of $string. File core/lib/Drupal/Component/Utility/UrlHelper.php, line 274 Class UrlHelper Helper class URL based methods. Namespace Drupal\Component\Utility Code public static function filterBadProtocol($string) { // Get the plain text r