コード例 #1
0
 /**
  * askForCustomPlaceholderOptions interactively.
  *
  * Placeholders know their default options. The user can override these defaults.
  * If the user does not override the defaults, nothing is added to the frontmatter.
  *
  * @param string $placeholderIdentifier Identifier of the placeholder.
  *
  * @return bool True on success. False when the placeholder is not known.
  */
 public function askForCustomPlaceholderOptionList($placeholderIdentifier)
 {
     $placeholder = $this->placeholders->getPlaceholderByClassName($placeholderIdentifier);
     if ($placeholder === null) {
         return false;
     }
     $defaults = $placeholder->getDefaultOptionList();
     $continue = true;
     while ($continue) {
         $numberPathMap = $this->showPlaceholderOptions($defaults);
         $continue = $this->askForCustomOption($numberPathMap, $defaults);
     }
     return true;
 }