telephone.module

Defines a simple telephone number field type. File core/modules/telephone/telephone.module Functions Name Description telephone_field_formatter_info_alter Implements hook_field_formatter_info_alter(). telephone_help Implements hook_help().

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

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

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_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

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_term_view_multiple

taxonomy_term_view_multiple(array $terms, $view_mode = 'full', $langcode = NULL) Constructs a drupal_render() style array from an array of loaded terms. Parameters array $terms: An array of taxonomy terms as returned by Term::loadMultiple(). string $view_mode: View mode; e.g., 'full', 'teaser', etc. string $langcode: (optional) A language code to use for rendering. Defaults to the global content language of the current request. Return value array An array in the format expected by drupal_rend

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', ), ); }

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_term_view

taxonomy_term_view(Term $term, $view_mode = 'full', $langcode = NULL) Generates an array which displays a term detail page. Parameters \Drupal\taxonomy\Entity\Term $term: A taxonomy term object. string $view_mode: View mode; e.g., 'full', 'teaser', etc. string $langcode: (optional) A language code to use for rendering. Defaults to the global content language of the current request. Return value array A $page element suitable for use by drupal_render(). File core/modules/taxonomy/taxonomy.modu