diff --git a/src/Plugin/search_api/processor/AccessControl.php b/src/Plugin/search_api/processor/AccessControl.php index 42cb402..55c3ec9 100644 --- a/src/Plugin/search_api/processor/AccessControl.php +++ b/src/Plugin/search_api/processor/AccessControl.php @@ -35,8 +35,7 @@ public function getPropertyDefinitions(?DatasourceInterface $datasource = NULL) if (!$datasource) { $definition = [ - // phpcs:ignore -- Translatable strings must not begin or end with white spaces, use placeholders with t() for variables - 'label' => $this->t(' Group: Access Control'), + 'label' => $this->t('Group: Access Control'), 'description' => $this->t('Add a field to determine access control with Group'), 'type' => 'string', 'processor_id' => $this->getPluginId(), diff --git a/src/Plugin/search_api/processor/Property/AddAccessControlProperty.php b/src/Plugin/search_api/processor/Property/AddAccessControlProperty.php index 8c2ed26..b756354 100644 --- a/src/Plugin/search_api/processor/Property/AddAccessControlProperty.php +++ b/src/Plugin/search_api/processor/Property/AddAccessControlProperty.php @@ -30,9 +30,6 @@ public function defaultConfiguration() { * {@inheritdoc} */ public function buildConfigurationForm(FieldInterface $field, array $form, FormStateInterface $form_state) { - // phpcs:ignore -- Unused variable $configuration. - $configuration = $field->getConfiguration(); - $form['description'] = [ '#markup' => new FormattableMarkup( "

This field is determined access control with