FieldConfigBase::$default_value

Default field value. The default value is used when an entity is created, either: through an entity creation form; the form elements for the field are prepopulated with the default value. through direct API calls (i.e. $entity->save()); the default value is added if the $entity object provides no explicit entry (actual values or "the field is empty") for the field. The default value is expressed as a numerically indexed array of items, each item being an array of key/value pairs matching t

AdminDemoNegotiator::applies

public AdminDemoNegotiator::applies(RouteMatchInterface $route_match) Whether this theme negotiator should be used to set the theme. Parameters \Drupal\Core\Routing\RouteMatchInterface $route_match: The current route match object. Return value bool TRUE if this negotiator should be used or FALSE to let other negotiators decide. Overrides ThemeNegotiatorInterface::applies File core/modules/block/src/Theme/AdminDemoNegotiator.php, line 16 Class AdminDemoNegotiator Negotiates the theme for

FieldConfigInterface::isDeleted

public FieldConfigInterface::isDeleted() Gets the deleted flag of the field. Return value bool Returns TRUE if the field is deleted. File core/modules/field/src/FieldConfigInterface.php, line 19 Class FieldConfigInterface Provides an interface defining a field entity. Namespace Drupal\field Code public function isDeleted();

Tasks::checkBinaryOutput

Tasks::checkBinaryOutput() Check Binary Output. Unserializing does not work on Postgresql 9 when bytea_output is 'hex'. File core/lib/Drupal/Core/Database/Driver/pgsql/Install/Tasks.php, line 136 Class Tasks Specifies installation tasks for PostgreSQL databases. Namespace Drupal\Core\Database\Driver\pgsql\Install Code function checkBinaryOutput() { // PostgreSQL < 9 doesn't support bytea_output, so verify we are running // at least PostgreSQL 9. $database_connection = Database

BlockPlaceEventSubscriber::__construct

public BlockPlaceEventSubscriber::__construct(RequestStack $request_stack, AccountInterface $account) Constructs a \Drupal\block_place\EventSubscriber\BlockPlaceEventSubscriber object. Parameters \Symfony\Component\HttpFoundation\RequestStack $request_stack: The request stack used to retrieve the current request. \Drupal\Core\Session\AccountInterface $account: The current user. File core/modules/block_place/src/EventSubscriber/BlockPlaceEventSubscriber.php, line 38 Class BlockPlaceEventSub

node_ranking

node_ranking() Implements hook_ranking(). File core/modules/node/node.module, line 645 The core module that allows content to be submitted to the site. Code function node_ranking() { // Create the ranking array and add the basic ranking options. $ranking = array( 'relevance' => array( 'title' => t('Keyword relevance'), // Average relevance values hover around 0.15 'score' => 'i.relevance', ), 'sticky' => array( 'title' => t('Content is st

Link::__construct

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

DatabaseFileUsageBackend::listUsage

public DatabaseFileUsageBackend::listUsage(FileInterface $file) Determines where a file is used. Parameters \Drupal\file\FileInterface $file: A file entity. Return value array A nested array with usage data. The first level is keyed by module name, the second by object type and the third by the object id. The value of the third level contains the usage count. Overrides FileUsageInterface::listUsage File core/modules/file/src/FileUsage/DatabaseFileUsageBackend.php, line 98 Class DatabaseFi

Tour::$tipsCollection

Holds the collection of tips that are attached to this tour. Type: \Drupal\tour\TipsPluginCollection File core/modules/tour/src/Entity/Tour.php, line 76 Class Tour Defines the configured tour entity. Namespace Drupal\tour\Entity Code protected $tipsCollection;

ToolbarController::subtreesAjax

public ToolbarController::subtreesAjax() Returns an AJAX response to render the toolbar subtrees. Return value \Drupal\Core\Ajax\AjaxResponse File core/modules/toolbar/src/Controller/ToolbarController.php, line 21 Class ToolbarController Defines a controller for the toolbar module. Namespace Drupal\toolbar\Controller Code public function subtreesAjax() { list($subtrees, $cacheability) = toolbar_get_rendered_subtrees(); $response = new AjaxResponse(); $response->addCommand(new