Skip to content
Snippets Groups Projects

Issue #3076302: Set Label runs two times on node creation

Merged Issue #3076302: Set Label runs two times on node creation
3 unresolved threads
3 unresolved threads

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
264 264 ],
265 265 ];
266 266
267 $newActionOptions = [
268 AutoEntityLabelManager::BEFORE_SAVE => $this->t('Create label before first save'),
269 AutoEntityLabelManager::AFTER_SAVE => $this->t('Create label after first save'),
270 ];
271 $newActionDescriptions = [
272 AutoEntityLabelManager::BEFORE_SAVE => [
273 '#description' => $this->t('Create the label before saving the content. This option is faster but does not support all tokens (ie the id token).'),
  • 264 264 ],
    265 265 ];
    266 266
    267 $newActionOptions = [
    268 AutoEntityLabelManager::BEFORE_SAVE => $this->t('Create label before first save'),
    269 AutoEntityLabelManager::AFTER_SAVE => $this->t('Create label after first save'),
    270 ];
    271 $newActionDescriptions = [
    272 AutoEntityLabelManager::BEFORE_SAVE => [
    273 '#description' => $this->t('Create the label before saving the content. This option is faster but does not support all tokens (ie the id token).'),
    274 ],
    275 AutoEntityLabelManager::AFTER_SAVE => [
    276 '#description' => $this->t('Create the label after saving the content. All tokens are supported however the content will be saved twice. This may interfere with other modules.'),
  • 269 AutoEntityLabelManager::AFTER_SAVE => $this->t('Create label after first save'),
    270 ];
    271 $newActionDescriptions = [
    272 AutoEntityLabelManager::BEFORE_SAVE => [
    273 '#description' => $this->t('Create the label before saving the content. This option is faster but does not support all tokens (ie the id token).'),
    274 ],
    275 AutoEntityLabelManager::AFTER_SAVE => [
    276 '#description' => $this->t('Create the label after saving the content. All tokens are supported however the content will be saved twice. This may interfere with other modules.'),
    277 ],
    278 ];
    279
    280 $form['auto_entitylabel']['new_content_behavior'] = [
    281 '#type' => 'radios',
    282 '#title' => $this->t('New content behavior'),
    283 '#description' => $this->t('Select when to create the automatic label for new content of type %type', ['%type' => $this->entityBundle]),
    284 '#default_value' => $config->get('new_content_behavior') ?: 0,
  • Joshua Sedler added 1 commit

    added 1 commit

    Compare with previous version

  • added 2 commits

    • d4cf1543 - 1 commit from branch project:8.x-3.x
    • fde62106 - Merge branch auto_entitylabel:8.x-3.x into 3076302-set-label-runs

    Compare with previous version

  • Please register or sign in to reply
    Loading