entityCanContainShortcodes() public method

Return true if entity can contain shortcodes
public entityCanContainShortcodes ( string $entityName ) : boolean
$entityName string
return boolean
 /**
  * Synchronizes entities from storage to the database. It generally only works with tracked
  * entities, i.e. the ignored (untracked) rows in the database are left untouched. The rows
  * corresponding to tracked entities are usually in sync with the storage after this method
  * is done. It may happen that the synchronizer cannot synchronize everything in the first
  * pass. Because of this, the synchronize method takes a task for sychronization (usually
  * "everything" for the first pass) and returns a list of tasks that aren't done yet. It's
  * up to the SynchronizationProcess to call the synchronize method again with this tasks
  * when the previous pass is done.
  *
  * If the $entitiesToSynchronize is null, the synchronizer will synchronize all entities.
  * If it's an array, the synchronizer will synchronize only those entities.
  *
  * @param string $task
  * @param array $entitiesToSynchronize List of VPIDs and their possible parents
  *                                     {@see SynchronizationProcess::synchronize()}
  * @return string[]
  */
 public function synchronize($task, $entitiesToSynchronize = null)
 {
     $entityName = $this->entityName;
     $this->isSelectiveSynchronization = is_array($entitiesToSynchronize);
     $this->entitiesToSynchronize = $entitiesToSynchronize;
     $this->maybeInit();
     $remainingTasks = [];
     do_action("vp_before_synchronization_{$entityName}");
     if ($task === Synchronizer::SYNCHRONIZE_EVERYTHING) {
         $this->createTable();
         $this->updateDatabase();
         $fixedMnReferences = $this->fixMnReferences();
         $this->cleanCache();
         $remainingTasks[] = self::FIX_REFERENCES;
         if (!$fixedMnReferences) {
             $remainingTasks[] = self::SYNCHRONIZE_MN_REFERENCES;
         }
         if ($this->shortcodesReplacer->entityCanContainShortcodes($entityName)) {
             $remainingTasks[] = self::REPLACE_SHORTCODES;
         }
         if ($this->entityContainsComputedValues()) {
             $remainingTasks[] = self::COMPUTE_COLUMN_VALUES;
         }
     }
     if ($task === self::FIX_REFERENCES) {
         $this->fixReferences();
     }
     if ($task === self::SYNCHRONIZE_MN_REFERENCES) {
         $this->fixMnReferences();
     }
     if ($task === self::COMPUTE_COLUMN_VALUES) {
         $this->computeColumnValues();
     }
     if ($task === self::REPLACE_SHORTCODES) {
         $this->restoreShortcodesInAllEntities();
     }
     do_action("vp_after_synchronization_{$entityName}");
     return $remainingTasks;
 }