League\CommonMark\Cursor::isIndented PHP Method

isIndented() public method

Whether the cursor is indented to INDENT_LEVEL
public isIndented ( ) : boolean
return boolean
    public function isIndented()
    {
        return $this->getIndent() >= self::INDENT_LEVEL;
    }

Usage Example

 /**
  * @param ContextInterface $context
  * @param Cursor $cursor
  *
  * @return bool
  */
 public function parse(ContextInterface $context, Cursor $cursor)
 {
     if (!$cursor->isIndented()) {
         return false;
     }
     $context->setBlocksParsed(true);
     return true;
 }
All Usage Examples Of League\CommonMark\Cursor::isIndented