private function addToFrontmatter($matter)
    {
        if (empty($matter) || !is_array($matter)) {
            return $this;
        }

        if (is_null($this->current->frontmatter)) {
            $this->current->frontmatter = [];
        }

        $this->current->frontmatter = array_merge($this->current->frontmatter, $matter);
        return $this;
    }
private function addToFrontmatter($matter)
    {
        if (empty($matter) || !is_array($matter)) {
            return $this;
        }

        if (is_null($this->current->frontmatter)) {
            $this->current->frontmatter = [];
        }

        $this->current->frontmatter = array_merge($this->current->frontmatter, $matter);
        return $this;
    }
private function addToFrontmatter ( $ matter ) { if ( empty ( $ matter ) || ! is_array ( $ matter ) ) { return $ this ; } if ( is_null ( $ this -> current -> frontmatter ) ) { $ this -> current -> frontmatter = [ ] ; } $ this -> current -> frontmatter = array_merge ( $ this -> current -> frontmatter , $ matter ) ; return $ this ; }
Add array items to frontmatter.

@deprecated since 1.2, replaced with filter\Frontmatter.

@param array|null $matter key value array with items to add
or null if empty.

@return $this
Add array items to frontmatter .