$fields = BaseFieldDefinition::create('entity_reference') ->setLabel(t(<label>)) ->setDescription(t(<description>)) ->setRevisionable(TRUE) ->setSetting('target_type', 'taxonomy_term') ->setTranslatable(TRUE) ->setTargetEntityTypeId(<vocabulary machine name>);
I was listening to Webchick's presentation on Upgrading YOUR Module to Drupal 8 (https://www.youtube.com/watch?v=wKdU2Q1NIZQ), following along with my own contributed module (https://drupal.org/project/node_theme) and when she reached a seemingly innocuous step
- drush dl drupalmoduleupgrader
- cd drupalmoduleupgrader
- composer install
I received the following response in my Mac terminal window
For What It's Worth
All things being equal, they (equal things) are not always so in PHP. It's more of...it depends on what you mean by 'equal.' No, this isn't a case of, "it depends what 'is' is" ... or is it?