Commit 006389b5 authored by bojanz's avatar bojanz

Remove unused variable, unneeded usage of the deprecated TranslationWrapper.

parent 73cfdd9d
......@@ -11,7 +11,6 @@ use Drupal\Core\Field\FieldItemBase;
use Drupal\Core\Field\FieldStorageDefinitionInterface;
use Drupal\Core\Form\FormStateInterface;
use Drupal\Core\Session\AccountInterface;
use Drupal\Core\StringTranslation\TranslationWrapper;
use Drupal\Core\TypedData\DataDefinition;
use Drupal\Core\TypedData\OptionsProviderInterface;
use Drupal\Core\Validation\Plugin\Validation\Constraint\AllowedValuesConstraint;
......@@ -62,7 +61,7 @@ class StateItem extends FieldItemBase implements OptionsProviderInterface {
*/
public static function propertyDefinitions(FieldStorageDefinitionInterface $field_definition) {
$properties['value'] = DataDefinition::create('string')
->setLabel(new TranslationWrapper('State'))
->setLabel(t('State'))
->setRequired(TRUE);
return $properties;
......
......@@ -129,7 +129,7 @@ class WorkflowManager extends DefaultPluginManager implements WorkflowManagerInt
* {@inheritdoc}
*/
public function getGroupedLabels($entity_type_id = NULL) {
$definitions = $this->getSortedDefinitions($definitions);
$definitions = $this->getSortedDefinitions();
$group_labels = $this->getGroupLabels($entity_type_id);
$grouped_definitions = [];
foreach ($definitions as $id => $definition) {
......
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