Tel::preRenderTel

public static Tel::preRenderTel($element) Prepares a #type 'tel' render element for input.html.twig. Parameters array $element: An associative array containing the properties of the element. Properties used: #title, #value, #description, #size, #maxlength, #placeholder, #required, #attributes. Return value array The $element with prepared variables ready for input.html.twig. File core/lib/Drupal/Core/Render/Element/Tel.php, line 61 Class Tel Provides a form element for entering a telepho

Tel::getInfo

public Tel::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 ElementInterface::getInfo File core/lib/Drupal/Core/Render/Element/Tel.php, line 30 Class Tel Provides a form element for entering a telephone number. Namespace Drupal\Core\Render\Element Code public fun

Tel

Provides a form element for entering a telephone number. Provides an HTML5 input element with type of "tel". It provides no special validation. Usage example: $form['phone'] = array( '#type' => 'tel', '#title' => $this->t('Phone'), ); Plugin annotation @FormElement("tel") Hierarchy class \Drupal\Component\Plugin\PluginBase implements DerivativeInspectionInterface, PluginInspectionInterfaceclass \Drupal\Core\Plugin\PluginBase uses DependencySerializationTrait, StringTranslationTra

taxonomy_vocabulary_static_reset

taxonomy_vocabulary_static_reset(array $ids = NULL) Clear all static cache variables for vocabularies. Parameters $ids: An array of ids to reset in the entity cache. File core/modules/taxonomy/taxonomy.module, line 296 Enables the organization of content into categories. Code function taxonomy_vocabulary_static_reset(array $ids = NULL) { \Drupal::entityManager()->getStorage('taxonomy_vocabulary')->resetCache($ids); }

taxonomy_vocabulary_load_multiple

taxonomy_vocabulary_load_multiple(array $vids = NULL) Loads multiple taxonomy vocabularies based on certain conditions. This function should be used whenever you need to load more than one vocabulary from the database. Terms are loaded into memory and will not require database access if loaded again during the same page request. Parameters array $vids: (optional) An array of entity IDs. If omitted, all entities are loaded. Return value array An array of vocabulary objects, indexed by vid. De

taxonomy_vocabulary_load

taxonomy_vocabulary_load($vid) Return the taxonomy vocabulary entity matching a vocabulary ID. Parameters int $vid: The vocabulary's ID. Return value \Drupal\taxonomy\Entity\Vocabulary|null The taxonomy vocabulary entity, if exists, NULL otherwise. Results are statically cached. Deprecated in Drupal 8.x, will be removed before Drupal 9.0. Use \Drupal\taxonomy\Entity\Vocabulary::load(). File core/modules/taxonomy/taxonomy.module, line 409 Enables the organization of content into categories.

taxonomy_vocabulary_get_names

taxonomy_vocabulary_get_names() Get names for all taxonomy vocabularies. Return value array A list of existing vocabulary IDs. File core/modules/taxonomy/taxonomy.module, line 306 Enables the organization of content into categories. Code function taxonomy_vocabulary_get_names() { $names = &drupal_static(__FUNCTION__); if (!isset($names)) { $names = array(); $config_names = \Drupal::configFactory()->listAll('taxonomy.vocabulary.'); foreach ($config_names as $config_nam

taxonomy_views_data_alter

taxonomy_views_data_alter(&$data) Implements hook_views_data_alter(). File core/modules/taxonomy/taxonomy.views.inc, line 13 Provides views data for taxonomy.module. Code function taxonomy_views_data_alter(&$data) { $data['node_field_data']['term_node_tid'] = array( 'title' => t('Taxonomy terms on node'), 'help' => t('Relate nodes to taxonomy terms, specifying which vocabulary or vocabularies to use. This relationship will cause duplicated records if there are multiple

taxonomy_theme_suggestions_taxonomy_term

taxonomy_theme_suggestions_taxonomy_term(array $variables) Implements hook_theme_suggestions_HOOK(). File core/modules/taxonomy/taxonomy.module, line 225 Enables the organization of content into categories. Code function taxonomy_theme_suggestions_taxonomy_term(array $variables) { $suggestions = array(); /** @var \Drupal\taxonomy\TermInterface $term */ $term = $variables['elements']['#taxonomy_term']; $suggestions[] = 'taxonomy_term__' . $term->bundle(); $suggestions[] = 'taxon

taxonomy_theme

taxonomy_theme() Implements hook_theme(). File core/modules/taxonomy/taxonomy.module, line 132 Enables the organization of content into categories. Code function taxonomy_theme() { return array( 'taxonomy_term' => array( 'render element' => 'elements', ), ); }