Commit f68b310b authored by Sutharsan's avatar Sutharsan Committed by Sutharsan

Issue #2966529 by Sutharsan: Various clean-ups

parent cecb1e4c
......@@ -109,4 +109,5 @@ class BlockEntityStorage extends ConfigEntityStorage {
$blocks = $this->loadByProperties(['plugin' => "fieldblock:$entity_type"]);
$this->delete($blocks);
}
}
......@@ -103,11 +103,10 @@ class FieldBlockConfigForm extends ConfigFormBase {
}
else {
// This entity type no longer exists on the site.
$cleanup_options[$entity_type] = $this->t('Missing entity type') . ': ' . $entity_type;
$cleanup_options[$entity_type] = $this->t('Missing entity type: @type', ['@type' => $entity_type]);
}
}
if (!empty($cleanup_options)) {
$form['cleanup'] = [
'#type' => 'checkboxes',
......@@ -132,13 +131,6 @@ class FieldBlockConfigForm extends ConfigFormBase {
return array_keys($this->entityManager->getDefinitions());
}
/**
* {@inheritdoc}
*/
public function validateForm(array &$form, FormStateInterface $form_state) {
parent::validateForm($form, $form_state);
}
/**
* {@inheritdoc}
*/
......
......@@ -169,7 +169,7 @@ class FieldBlock extends BlockBase implements ContainerFactoryPluginInterface {
* @param string $field_name
* The field name.
*
* @return \Drupal\field\FieldStorageConfigInterface
* @return \Drupal\Core\Field\FieldStorageDefinitionInterface
* The field storage definition used by this block.
*/
protected function getFieldStorageDefinition($field_name) {
......@@ -307,13 +307,6 @@ class FieldBlock extends BlockBase implements ContainerFactoryPluginInterface {
return $form['settings']['formatter'];
}
/**
* {@inheritdoc}
*/
public function blockValidate($form, FormStateInterface $form_state) {
parent::blockValidate($form, $form_state);
}
/**
* {@inheritdoc}
*/
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment