public function RouteConditionCreator::getNewConditionLabel in Block Visibility Groups 8
Get the label when creating a new condition.
Return value
string A new condition label.
Overrides ConditionCreatorInterface::getNewConditionLabel
File
- block_visibility_groups_admin/
src/ Plugin/ ConditionCreator/ RouteConditionCreator.php, line 21
Class
- RouteConditionCreator
- Defines the form in-place editor.
Namespace
Drupal\block_visibility_groups_admin\Plugin\ConditionCreatorCode
public function getNewConditionLabel() {
$current_path = $this
->getPathPattern();
return $this
->t('Current path: @path', [
'@path' => $current_path,
]);
}