FieldDefinitionInterface::getDefaultValueLiteral

public FieldDefinitionInterface::getDefaultValueLiteral() Returns the default value literal for the field. This method retrieves the raw property assigned to the field definition. When computing the runtime default value for a field in a given entity, ::getDefaultValue() should be used instead. Return value array The default value for the field, as a numerically indexed array of items, each item being a property/value array (array() for no default value). See also FieldDefinitionInterface::ge

Element

Defines a service for Text Editor's render elements. Hierarchy class \Drupal\editor\Element File core/modules/editor/src/Element.php, line 13 Namespace Drupal\editor Members Name Modifiers Type Description Element::$pluginManager protected property The Text Editor plugin manager service. Element::preRenderTextFormat function Additional #pre_render callback for 'text_format' elements. Element::__construct public function Constructs a new Element object.

ThemeNegotiatorInterface

Defines an interface for classes which determine the active theme. To set the active theme, create a new service tagged with 'theme_negotiator' (see the theme.negotiator.admin_theme service in user.services.yml for an example). Your service class needs to implement this interface. If you are setting a theme which is closely tied to the functionality of a particular page or set of pages (such that the page might not function correctly if a different theme is used), make sure to set the priority

book_theme

book_theme() Implements hook_theme(). File core/modules/book/book.module, line 57 Allows users to create and organize related content in an outline. Code function book_theme() { return array( 'book_navigation' => array( 'variables' => array('book_link' => NULL), ), 'book_tree' => array( 'variables' => array('items' => array(), 'attributes' => array()), ), 'book_export_html' => array( 'variables' => array('title' => NULL, 'c

EntityViewsDataInterface::getViewsData

public EntityViewsDataInterface::getViewsData() Returns views data for the entity type. Return value array Views data in the format of hook_views_data(). File core/modules/views/src/EntityViewsDataInterface.php, line 18 Class EntityViewsDataInterface Provides an interface to integrate an entity type with views. Namespace Drupal\views Code public function getViewsData();

Link::setText

public Link::setText($text) Sets the new text of the link. Parameters string $text: The new text. Return value $this File core/lib/Drupal/Core/Link.php, line 108 Class Link Defines an object that holds information about a link. Namespace Drupal\Core Code public function setText($text) { $this->text = $text; return $this; }

CssCollectionGrouper

Groups CSS assets. Hierarchy class \Drupal\Core\Asset\CssCollectionGrouper implements AssetCollectionGrouperInterface File core/lib/Drupal/Core/Asset/CssCollectionGrouper.php, line 8 Namespace Drupal\Core\Asset Members Name Modifiers Type Description CssCollectionGrouper::group public function Puts multiple items into the same group if they are groupable and if they are for the same 'media' and 'browsers'. Items of the 'file' type are groupable if their 'preprocess' flag

ban_schema

ban_schema() Implements hook_schema(). File core/modules/ban/ban.install, line 11 Install, update and uninstall functions for the Ban module. Code function ban_schema() { $schema['ban_ip'] = array( 'description' => 'Stores banned IP addresses.', 'fields' => array( 'iid' => array( 'description' => 'Primary Key: unique ID for IP addresses.', 'type' => 'serial', 'unsigned' => TRUE, 'not null' => TRUE, ), 'ip' =>

TranslationString::setCustomized

public TranslationString::setCustomized($customized = TRUE) Sets the string as customized / not customized. Parameters bool $customized: (optional) Whether the string is customized or not. Defaults to TRUE. Return value \Drupal\locale\TranslationString The called object. File core/modules/locale/src/TranslationString.php, line 64 Class TranslationString Defines the locale translation string object. Namespace Drupal\locale Code public function setCustomized($customized = TRUE) { $th

Url::getOption

public Url::getOption($name) Gets a specific option. See \Drupal\Core\Url::fromUri() for details on the options. Parameters string $name: The name of the option. Return value mixed The value for a specific option, or NULL if it does not exist. File core/lib/Drupal/Core/Url.php, line 638 Class Url Defines an object that holds information about a URL. Namespace Drupal\Core Code public function getOption($name) { if (!isset($this->options[$name])) { return NULL; } return $