@@ -21,9 +21,14 @@ function auto_entitylabel_help($route_name, RouteMatchInterface $route_match) {
$output='<h3>'.t('About').'</h3>';
$output.='<p>'.t('This is a small and efficient module that allows hiding of entity label fields. To prevent empty labels it can be configured to generate the label automatically by a given pattern. The module can be used for any entity type that has a label, including e.g. for node titles, comment subjects, taxonomy term names and profile2 labels.').'</p>';
$output.='<p>'.t('Patterns for automatic labels are constructed with the help of tokens. Drupal core provides a basic set of <a href="@url_tokens" target="blank">tokens</a>. For a token selection widget install the token. Some entity types (e.g. profile2) provide tokens via the entity_token, which is part of the entity module.',['@url_tokens'=>'https://www.drupal.org/project/token']).'</p>';
$output.='<p>'.t('Watch the <a href="@url_daily_dose_of_drupal" target="blank">Daily Dose of Drupal</a> screencast by <a href="@url_shane_thomas" target="blank">Shane Thomas</a> for a short introduction and demonstration of the module and some of its features. Demonstration made in D7 but can help a lot.',['@url_daily_dose_of_drupal'=>'http://codekarate.com/daily-dose-of-drupal/drupal-7-automatic-entity-label-module','@url_shane_thomas'=>'https://www.drupal.org/user/506260']).'</p>';
$output.='<p>'.t('Watch the <a href="@url_daily_dose_of_drupal" target="blank">Daily Dose of Drupal</a> screencast by <a href="@url_shane_thomas" target="blank">Shane Thomas</a> for a short introduction and demonstration of the module and some of its features. Demonstration made in D7 but can help a lot.',
$output.='<p>'.t('The configuration can be accessed with the <i>Manage automatic entity labels</i> operation or the <i>Automatic label</i> tab when editing entity types. For example, when configuring a node type, visit <i>Administration</i> » <i>Structure</i> » <i>Content types</i> (/admin/structure/types). You can also configure automatic labels for other entity types such as <i>Media<i>, in which case you would visit <i>Administration</i> » <i>Structure</i> » <i>Media</i> (/admin/structure/media).').'</p>';
return$output;
}
}
@@ -89,6 +94,7 @@ function auto_entitylabel_inline_entity_label_callback($entity, $variables) {
}
}
return$autolabel;
}
@@ -209,7 +215,8 @@ function auto_entitylabel_entity_operation(EntityInterface $entity) {