code: public function parseBehaviour(\stdClass $block, $search)
      {
          if (!isset($block->behaviour)) {
              return false;
          }
          $behaviours = array();
          foreach (explode(' ', trim($block->behaviour)) as $b) {
              if (strstr($b, ':')) {
                  list($name, $prop) = explode(':', $b, 2);
                  $behaviours[$name] = $prop;
              } else {
                  $behaviours[$b] = true;
              }
          }
          return isset($behaviours[$search]) ? $behaviours[$search] : false;
      }
docs: This filter parses a blocks behaviour configuration string.
  
  @param \stdClass $block
  @param string    $search
  
  @return string|boolean