/** * {@inheritdoc} */ public function setValue($value, $notify = TRUE) { if (!$value instanceof PluginInspectionInterface) { $value = NULL; } parent::setValue($value, $notify); }
/** * {@inheritdoc} */ public function setValue($value, $notify = TRUE) { // Normalize the path in case it is an alias. $value = \Drupal::service('path.alias_manager')->getPathByAlias($value); if (empty($value)) { $value = '<front>'; } parent::setValue($value, $notify); }