X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs-website;a=blobdiff_plain;f=vendor%2Fdrupal%2Fconsole%2Ftemplates%2Fmodule%2Fsrc%2FEntity%2FForm%2Fentity-content.php.twig;h=63982a48598aa15485b6fcf98b995b42f94dd50f;hp=e703e5f17ae83fd5409f32c6eee46b03a9dbe5d1;hb=eba34333e3c89f208d2f72fa91351ad019a71583;hpb=a2bd1bf0c2c1f1a17d188f4dc0726a45494cefae diff --git a/vendor/drupal/console/templates/module/src/Entity/Form/entity-content.php.twig b/vendor/drupal/console/templates/module/src/Entity/Form/entity-content.php.twig index e703e5f17..63982a485 100644 --- a/vendor/drupal/console/templates/module/src/Entity/Form/entity-content.php.twig +++ b/vendor/drupal/console/templates/module/src/Entity/Form/entity-content.php.twig @@ -30,12 +30,12 @@ class {{ entity_class }}Form extends ContentEntityForm {% endblock %} {% if revisionable %} if (!$this->entity->isNew()) { - $form['new_revision'] = array( + $form['new_revision'] = [ '#type' => 'checkbox', '#title' => $this->t('Create new revision'), '#default_value' => FALSE, '#weight' => 10, - ); + ]; } {% endif %}