You are here

protected static function FeedFactory::convertKey in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/zendframework/zend-feed/src/Writer/FeedFactory.php \Zend\Feed\Writer\FeedFactory::convertKey()

Normalize a key

Parameters

string $key:

Return value

string

2 calls to FeedFactory::convertKey()
FeedFactory::createEntries in vendor/zendframework/zend-feed/src/Writer/FeedFactory.php
Create and attach entries to a feed
FeedFactory::factory in vendor/zendframework/zend-feed/src/Writer/FeedFactory.php
Create and return a Feed based on data provided.

File

vendor/zendframework/zend-feed/src/Writer/FeedFactory.php, line 75

Class

FeedFactory

Namespace

Zend\Feed\Writer

Code

protected static function convertKey($key) {
  $key = str_replace('_', '', strtolower($key));
  return $key;
}