RdfMapping

Config entity for working with RDF mappings. Plugin annotation @ConfigEntityType( id = "rdf_mapping", label = @Translation("RDF mapping"), config_prefix = "mapping", entity_keys = { "id" = "id" }, config_export = { "id", "targetEntityType", "bundle", "types", "fieldMappings", } ) Hierarchy class \Drupal\Core\Entity\Entity implements EntityInterface uses RefinableCacheableDependencyTrait, DependencySerializationTraitclass \Drupal\Core\Config\Entity\ConfigEn

rdf.module

Enables semantically enriched output for Drupal sites in the form of RDFa. File core/modules/rdf/rdf.module Functions Name Description rdf_comment_storage_load Implements hook_ENTITY_TYPE_storage_load() for comment entities. rdf_entity_prepare_view Implements hook_entity_prepare_view(). rdf_get_mapping Returns the RDF mapping object associated with a bundle. rdf_get_namespaces Retrieves RDF namespaces. rdf_help Implements hook_help(). rdf_preprocess_comment Impleme

rdf-wrapper.html.twig

Default theme implementation for wrapping content with RDF attributes. Available variables: content: The content being wrapped with RDF attributes. attributes: HTML attributes, including RDF attributes for wrapper element. File core/modules/rdf/templates/rdf-wrapper.html.twig Related topics Theme system overview Functions and templates for the user interface that themes can override.

rdf-metadata.html.twig

Default theme implementation for empty spans with RDF attributes. The XHTML+RDFa doctype allows either <span></span> or <span /> syntax to be used, but for maximum browser compatibility, W3C recommends the former when serving pages using the text/html media type, see http://www.w3.org/TR/xhtml1/#C_3. Available variables: metadata: Each item within corresponds to its own set of attributes, and therefore, needs its own 'attributes' element. See also template_preprocess_rdf_m

RDF Mapping API

Functions to describe entities and bundles in RDF. The RDF module introduces RDF and RDFa to Drupal. RDF is a W3C standard to describe structured data. RDF can be serialized as RDFa in XHTML attributes to augment visual data with machine-readable hints. Modules can provide mappings of their bundles' data and metadata to RDF classes and properties. This module takes care of injecting these mappings into variables available to theme functions and templates. All Drupal core themes are coded to be

Range::valueCallback

public static Range::valueCallback(&$element, $input, FormStateInterface $form_state) Determines how user input is mapped to an element's #value property. Parameters array $element: An associative array containing the properties of the element. mixed $input: The incoming input to populate the form element. If this is FALSE, the element's default value should be returned. \Drupal\Core\Form\FormStateInterface $form_state: The current state of the form. Return value mixed The value to assign

Range::preRenderRange

public static Range::preRenderRange($element) Prepares a #type 'range' render element for input.html.twig. Parameters array $element: An associative array containing the properties of the element. Properties used: #title, #value, #description, #min, #max, #attributes, #step. Return value array The $element with prepared variables ready for input.html.twig. File core/lib/Drupal/Core/Render/Element/Range.php, line 59 Class Range Provides a slider for input of a number within a specific ran

Range::getInfo

public Range::getInfo() Returns the element properties for this element. Return value array An array of element properties. See \Drupal\Core\Render\ElementInfoManagerInterface::getInfo() for documentation of the standard properties of all elements, and the return value format. Overrides Number::getInfo File core/lib/Drupal/Core/Render/Element/Range.php, line 35 Class Range Provides a slider for input of a number within a specific range. Namespace Drupal\Core\Render\Element Code public

Range

Provides a slider for input of a number within a specific range. Provides an HTML5 input element with type of "range". Properties: #min: Minimum value (defaults to 0). #max: Maximum value (defaults to 100). Refer to \Drupal\Core\Render\Element\Number for additional properties. Usage example: $form['quantity'] = array( '#type' => 'range', '#title' => $this->t('Quantity'), ); Plugin annotation @FormElement("range") Hierarchy class \Drupal\Component\Plugin\PluginBase implements

Random::word

public Random::word($length) Generate a string that looks like a word (letters only, alternating consonants and vowels). Parameters int $length: The desired word length. Return value string File core/lib/Drupal/Component/Utility/Random.php, line 141 Class Random Defines a utility class for creating random data. Namespace Drupal\Component\Utility Code public function word($length) { mt_srand((double) microtime() * 1000000); $vowels = array("a", "e", "i", "o", "u"); $cons = arra