theme.inc

The theme system, which controls the output of Drupal. The theme system allows for nearly all output of the Drupal system to be customized by user themes. File core/includes/theme.inc Functions Name Description drupal_common_theme Provides theme registration for themes across .inc files. drupal_find_theme_functions Allows themes and/or theme engines to discover overridden theme functions. drupal_find_theme_templates Allows themes and/or theme engines to easily discover overrid

theme.maintenance.inc

Theming for maintenance pages. File core/includes/theme.maintenance.inc Functions Name Description template_preprocess_authorize_report Prepares variables for authorize.php operation report templates. _drupal_maintenance_theme Sets up the theming system for maintenance page.

Theme system overview

Functions and templates for the user interface that themes can override. Drupal's theme system allows a theme to have nearly complete control over the appearance of the site, which includes both the markup and the CSS used to style the markup. For this system to work, modules, instead of writing HTML markup directly, need to return "render arrays", which are structured hierarchical arrays that include the data to be rendered into HTML (or XML or another output format), and options that affect t

Theme

Defines a class for updating themes using Drupal\Core\FileTransfer\FileTransfer classes via authorize.php. Hierarchy class \Drupal\Core\Updater\Updaterclass \Drupal\Core\Updater\Theme implements UpdaterInterface File core/lib/Drupal/Core/Updater/Theme.php, line 11 Namespace Drupal\Core\Updater Members Name Modifiers Type Description Theme::canUpdate public static function Determines whether this class can update the specified project. Theme::canUpdateDirectory stati

text_summary

text_summary($text, $format = NULL, $size = NULL) Generates a trimmed, formatted version of a text field value. If the end of the summary is not indicated using the <!--break--> delimiter then we generate the summary automatically, trying to end it at a sensible place such as the end of a paragraph, a line break, or the end of a sentence (in that order of preference). Parameters $text: The content for which a summary will be generated. $format: The format of the content. If the line brea

TextProcessed::__construct

public TextProcessed::__construct(DataDefinitionInterface $definition, $name = NULL, TypedDataInterface $parent = NULL) Constructs a TypedData object given its definition and context. @todo When \Drupal\Core\Config\TypedConfigManager has been fixed to use class-based definitions, type-hint $definition to DataDefinitionInterface. https://www.drupal.org/node/1928868 Parameters \Drupal\Core\TypedData\DataDefinitionInterface $definition: The data definition. string $name: (optional) The name of th

text_help

text_help($route_name, RouteMatchInterface $route_match) Implements hook_help(). File core/modules/text/text.module, line 16 Defines simple text field types. Code function text_help($route_name, RouteMatchInterface $route_match) { switch ($route_name) { case 'help.page.text': $output = ''; $output .= '<h3>' . t('About') . '</h3>'; $output .= '<p>' . t('The Text module allows you to create short and long text fields with optional summaries. See the <

TextProcessed::setValue

public TextProcessed::setValue($value, $notify = TRUE) Sets the data value. Parameters mixed|null $value: The value to set in the format as documented for the data type or NULL to unset the data value. bool $notify: (optional) Whether to notify the parent object of the change. Defaults to TRUE. If a property is updated from a parent object, set it to FALSE to avoid being notified again. Throws \InvalidArgumentException If the value input is inappropriate. \Drupal\Core\TypedData\Exception\Read

TextProcessed::$processed

Cached processed text. Type: string|null File core/modules/text/src/TextProcessed.php, line 22 Class TextProcessed A computed property for processing text with a format. Namespace Drupal\text Code protected $processed = NULL;

TextProcessed::getValue

public TextProcessed::getValue() Gets the data value. Return value mixed Overrides TypedData::getValue File core/modules/text/src/TextProcessed.php, line 38 Class TextProcessed A computed property for processing text with a format. Namespace Drupal\text Code public function getValue() { if ($this->processed !== NULL) { return $this->processed; } $item = $this->getParent(); $text = $item->{($this->definition->getSetting('text source'))}; // Avoid runni